package com.srit.migration.business.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

import com.srit.base.bean.Page;
import com.srit.migration.business.bean.ColType;
import com.srit.migration.business.dao.ColTypeDao;
import com.srit.migration.business.service.ColTypeService;

/**
 * @author guan
 * @by serviceImpl.tem
 * 
 */
 @Service
public class ColTypeServiceImpl implements ColTypeService {
	@Autowired(required = true)
	private ColTypeDao colTypeDao;

	@Override
	public void save(ColType colType) {
		colTypeDao.save(colType);
	}

	@Override
	public void update(ColType colType) {
		colTypeDao.update(colType);
	}

	@Override
	public ColType getById(ColType colType) {
		return (ColType) colTypeDao.getById(colType);
	}

	@Override
	public void delete(ColType colType) {
		colTypeDao.delete( colType);
	}

	@Override
	public void page(Page page) {
		colTypeDao.page( page);
	}
	
	@Override
	public void batchSave(List<ColType> colTypeList) {
		colTypeDao.batchSave(colTypeList);

	}

	@Override
	public List list(Page page) {
		return colTypeDao.list( page);
	}

}
